package com.zhangfei;

import java.util.HashMap;

public class HashMapTest {
    public static void main(String[] args) {

        Integer integer = new Integer(100);
        System.out.println(integer.hashCode());
        System.out.println(integer.hashCode());


        HashMap<Integer, Integer> objectObjectHashMap = new HashMap<>();
        objectObjectHashMap.put(1,100);
        System.out.println(objectObjectHashMap.get(1).hashCode());
        System.out.println(objectObjectHashMap.get(1).hashCode());




//        String STR="ZHAGNFEI";
//        System.out.println(STR.hashCode());
//        System.out.println(STR.hashCode());
//
//
//        HashMap<Integer, String> objectObjectHashMap2 = new HashMap<>();
//        objectObjectHashMap2.put(1,"ZHAGNFEI");
//        System.out.println(objectObjectHashMap2.get(1).hashCode());
//        System.out.println(objectObjectHashMap2.get(1).hashCode());





    }
}
